﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using XZL.GM.Bll;
using XZL.GM.Dal;


public partial class MyInfo_AgencyInfo : System.Web.UI.Page
{
    

         protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindAgencyInfo();

        }
    }

    private void BindAgencyInfo()
    {

        string str = Request.QueryString["ApplyID"];
        if (str != null)
        {
            int ApplyID = Convert.ToInt32(str);
            Proc_ApplyInfo_SelectInfoResult apply = ApplyInfoBiz.GetApplyInfo(ApplyID);


            lblRealName.Text = apply.RealName;
            lblLiveCity.Text = apply.LiveCity;
            lblContact.Text = apply.Contact;
            lblIDcard.Text = apply.IDcard;
            lblAddress.Text = apply.Address;
            lblCompany.Text = apply.Company;
            lblPosition.Text = apply.Position;
            lblReason.Text = apply.Reason;

        }

    }


    protected void btnPass_Click(object sender, EventArgs e)
    {
        string str = Request.QueryString["ApplyID"];
        int applyID = Convert.ToInt32(str);

        int status = Convert.ToInt32(st1.Visible);
        int i = ApplyInfoBiz.GetApplyStatus(applyID, 1);
        status = i;

        Response.Redirect("Agency.aspx");

    }


    protected void btnNoPass_Click(object sender, EventArgs e)
    {
        string str = Request.QueryString["ApplyID"];
        int applyID = Convert.ToInt32(str);

        int status = Convert.ToInt32(st2.Visible);
        int i = ApplyInfoBiz.GetApplyStatus(applyID, 2);
        status = i;

        Response.Redirect("Agency.aspx");


    }


    
}